import { defineStore } from "pinia";
import { PracticeItem } from "../types";

const useMenuStore = defineStore({
  id: "menu",
  state: (): PracticeItem => ({
    name: "/",
    path: "/",
    title: "root",
    children: []
  }),
  actions: {
    set(item: PracticeItem) {
      this.children = item.children;
    }
  }
});
export default useMenuStore;
